package dk.dashboardFP.interactionElementFramwork.inputElementViews {
	import dk.dashboardFP.interactionElementFramwork.inputElement.CheckBox;

	/**
	 * @author jk
	 */
	public class CheckBoxView extends AbstractInputElementView {

		public function CheckBoxView() {
			
			super();
			setupButton();
			
		}
				
		//::::::::::::::::::::::::::::::::::::::::::::::::::::::::::		// setup 
		//::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
		
		private function setupButton() : void {
			buttonMode=true;
			mouseEnabled=true;
			mouseChildren=false;
		}
		
		private function disableButton() : void {
			//mouseEnabled=false;
			buttonMode=false;
			mouseChildren=false;
		}
		
		//::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
		// disable enable
		//::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
		override public function disable() : void {
			super.disable();
			disableButton();
		}

		override public function enable() : void {
			super.enable();
			setupButton();
		}

		//::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
		// select deselect
		//::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
		
		public function setCheked() : void {
		}
		
		public function setUnCheked() : void {
		}
				
		//::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
		// internal events
		//::::::::::::::::::::::::::::::::::::::::::::::::::::::::::

		override protected function registerDefaultInternalEvents() : void {
			super.registerDefaultInternalEvents();
		}
		
		
		//::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
		// getter setters
		//::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
		
		public function get oIECheckBox() : CheckBox { 
			return _oIEHock as CheckBox; 
		}
		
	}
}
